<%@ page import="quanlythuvien.PhieuThuTienPhat" %>



<div class="fieldcontain ${hasErrors(bean: phieuThuTienPhatInstance, field: 'code', 'error')} required">
	<label for="code">
		<g:message code="phieuThuTienPhat.code.label" default="Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="code" maxlength="50" required="" value="${phieuThuTienPhatInstance?.code}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuThuTienPhatInstance, field: 'ngayThu', 'error')} required">
	<label for="ngayThu">
		<g:message code="phieuThuTienPhat.ngayThu.label" default="Ngay Thu" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="ngayThu" precision="day"  value="${phieuThuTienPhatInstance?.ngayThu}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: phieuThuTienPhatInstance, field: 'maNhanVien', 'error')} required">
	<label for="maNhanVien">
		<g:message code="phieuThuTienPhat.maNhanVien.label" default="Ma Nhan Vien" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="maNhanVien" name="maNhanVien.id" from="${quanlythuvien.NhanVien.list()}" optionKey="id" required="" value="${phieuThuTienPhatInstance?.maNhanVien?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuThuTienPhatInstance, field: 'maDocGia', 'error')} required">
	<label for="maDocGia">
		<g:message code="phieuThuTienPhat.maDocGia.label" default="Ma Doc Gia" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="maDocGia" name="maDocGia.id" from="${quanlythuvien.DocGia.list()}" optionKey="id" required="" value="${phieuThuTienPhatInstance?.maDocGia?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuThuTienPhatInstance, field: 'lyDo', 'error')} ">
	<label for="lyDo">
		<g:message code="phieuThuTienPhat.lyDo.label" default="Ly Do" />
		
	</label>
	<g:textField name="lyDo" value="${phieuThuTienPhatInstance?.lyDo}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuThuTienPhatInstance, field: 'soTienThu', 'error')} required">
	<label for="soTienThu">
		<g:message code="phieuThuTienPhat.soTienThu.label" default="So Tien Thu" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="soTienThu" step="any" required="" value="${phieuThuTienPhatInstance.soTienThu}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuThuTienPhatInstance, field: 'tinhTrang', 'error')} required">
	<label for="tinhTrang">
		<g:message code="phieuThuTienPhat.tinhTrang.label" default="Tinh Trang" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="tinhTrang" required="" value="${phieuThuTienPhatInstance.tinhTrang}"/>
</div>

